﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using SL5NewFeature.Models;

namespace SL5NewFeature.Data
{
    public class FakeFactory
    {
        public static List<Book> GetPublishBooks()
        {
            List<Book> ls = new List<Book>();
            Random rand = new Random();

            for (int i = 0; i < 10; i++)
            {
                var v = new PublishBook();
                v.BookName = "Book"+i;
                v.Price = rand.Next(1, 100);
                v.FllBrush = new SolidColorBrush(Color.FromArgb(255, (byte)rand.Next(1, 254), (byte)rand.Next(1, 254), (byte)rand.Next(1, 254)));
                ls.Add(v);
            }

            for (int i = 0; i < 10; i++)
            {
                var v = new StoreBook();
                v.BookName = "Book" + i;
                v.Price = rand.Next(1, 100);
                v.FllBrush = new SolidColorBrush(Color.FromArgb(255, (byte)rand.Next(1, 254), (byte)rand.Next(1, 254), (byte)rand.Next(1, 254)));
                ls.Add(v);
            }

            return ls;
        }
    }
}
